package com.cloud.bean;

import com.cloud.service.HalloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

/**
 * @author stevejson
 */
@Component
public class ConsumerComponent {
    @Reference
    private HalloService halloService;

    public String sayHallo(String name){
        return halloService.sayHallo(name);
    }
}
